import {RouteRecordRaw} from "vue-router";
import Index from '@/views/index.vue'

export default [
    {
        path: '/',
        component: Index,
        name: 'main',
        meta: {
            title: '首页'
        },
        redirect: {path: '/index'},
        children: [
            {
                path: 'index',
                name: 'index',
                meta: {
                    title: '首页'
                },
                component: () => import('@/views/home/index.vue')
            },
            {
                path: '/student',
                name: 'student',
                meta: {
                    title: '学生管理'
                },
                children: [
                    {
                        path: '/student/list',
                        name: 'studentList',
                        meta: {
                            title: '学生列表'
                        },
                        component: () => import('@/views/student/list/index.vue')
                    }
                ],

            }
        ]

    }
] as RouteRecordRaw[]